package org.example.main;

import org.example.components.Computer;
import org.example.components.LenovoComputer;
import org.example.config.AppConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
        Computer lenovoComputer = context.getBean(LenovoComputer.class);
        lenovoComputer.displayInfo();
    }
}
